package com.mc.api.service.impl;

import com.mc.api.domain.CltPosition;
import com.mc.api.mapper.CltPositionMapper;
import com.mc.api.service.ICltPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CltPositionServiceImpl implements ICltPositionService {

    @Autowired
    CltPositionMapper cltPositionMapper;

    @Override
    public int insertCltPosition(CltPosition cltPosition) {
        return cltPositionMapper.insertCltPosition(cltPosition);
    }

    @Override
    public int selectCltPositionByRecordTime(String recordTime) {
        return cltPositionMapper.selectCltPositionByRecordTime(recordTime);
    }

    @Override
    public int selectCltPositionByUserId(String userId) {
        return cltPositionMapper.selectCltPositionByUserId(userId);
    }

    @Override
    public int insertCltPositionNow(CltPosition cltPosition) {
        return cltPositionMapper.insertCltPositionNow(cltPosition);
    }

    @Override
    public int updateCltPositionNow(CltPosition cltPosition) {
        return cltPositionMapper.updateCltPositionNow(cltPosition);
    }
}
